package cn.hss.object.inter;

/**
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 19:53
 * @Package 包名：cn.hss.object.inter
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class Developer {
	private String name;
	private int age;
	public Developer(){}

	public Developer(String name,int age) {
		this.name = name;
		this.age = age;
	}
	public void takingVehicle(Vehicle vehicle){
		vehicle.run();
	}
	public String getName() {
		return name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(final int age) {
		this.age = age;
	}
}
